package cxf.client;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

import javax.xml.transform.Result;

public class Test {
    public static void main(String[] args) throws Exception {
        JaxWsDynamicClientFactory clientFactory =
                JaxWsDynamicClientFactory.newInstance();
        Client client = clientFactory.createClient("http://localhost:8080/services/cxf?wsdl");
        Object[] result = client.invoke("sayHello", "xxx");
        System.out.println(result[0]);
    }
}
